.List-item {
  transition: opacity 0.3s ease;
}

.List-item[style*="display: none"] {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}